﻿using System.Windows.Navigation;

namespace SLNavigationFrameworkEx
{
    public static partial class NavigationServiceHelper
    {
        #region Public Method ShowPrevPage

        public static void ShowPrevPage(this NavigationService ns)
        {
            if (ns.CanGoBack)
            {
                ns.GoBack();
            }
        }

        #endregion

        #region Public Method ShowNextPage

        public static void ShowNextPage(this NavigationService ns)
        {
            if (ns.CanGoForward)
            {
                ns.GoForward();
            }
        }

        #endregion
    }
}
